//
//  MineModel.m
//  土巴兔
//
//  Created by 千锋 on 15/12/29.
//  Copyright (c) 2015年 IOS1503薛凯. All rights reserved.
//

#import "MineModel.h"

@implementation MineModel
- (instancetype)initWithDic:(NSDictionary*)dic{
    if (self=[super init]) {
        self.ID=[dic objectForKey:@"id"];
        self.type=[[dic objectForKey:@"type"] integerValue];
        self.title=[dic objectForKey:@"title"];
        
        self.name=[dic objectForKey:@"name"];
        self.content=[dic objectForKey:@"content"];
        self.time=[[dic objectForKey:@"time"] integerValue];
        
        self.collection_num=[dic objectForKey:@"collection_num"];
        self.filename=[dic objectForKey:@"filename"];
        self.width=[[dic objectForKey:@"width"] integerValue];
        
        self.height=[[dic objectForKey:@"height"] integerValue];
        self.webUrl=[dic objectForKey:@"webUrl"];
    }
    return self;
}
@end
//@property (strong,nonatomic)NSString* ID;
//@property (strong,nonatomic)NSString* type;
//@property (strong,nonatomic)NSString* title;
//@property (strong,nonatomic)NSString* name;
//@property (strong,nonatomic)NSString* content;
//@property (strong,nonatomic)NSString* time;
//@property (strong,nonatomic)NSString* collection_num;
//
//@property (strong,nonatomic)NSString* filename;
//@property (assign,nonatomic)NSInteger* width;
//@property (assign,nonatomic)NSInteger* height;
//@property (strong,nonatomic)NSString* webUrl;